package sk.tuke.persistance;

import java.io.Serializable;
import javax.persistence.*;

@Entity
@org.hibernate.annotations.Proxy(lazy = false)
@Table(name = "ADMINISTRATOR")
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@DiscriminatorValue("ADMINISTRATOR")
public class AdministratorPo extends UserPo implements Serializable {

	private static final long serialVersionUID = 1L;

	public AdministratorPo() {
	}

	public boolean equals(Object aObj) {
		if (aObj == this)
			return true;
		if (!(aObj instanceof AdministratorPo))
			return false;
		AdministratorPo administrator = (AdministratorPo) aObj;
		if (getId() != administrator.getId())
			return false;
		return true;
	}

	public int hashCode() {
		int hashcode = 0;
		hashcode = hashcode + (int) getId();
		return hashcode;
	}

	public String toString() {
		return super.toString();
	}

}
